package com.hc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hc.domain.ProductSpecs;
import com.hc.query.ProductSpecsCondition;
import com.hc.res.ProductSpecsItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductSpecsMapper extends BaseMapper<ProductSpecs> {
    int updateBatch(List<ProductSpecs> list);

    int batchInsert(@Param("list") List<ProductSpecs> list);

    /**
     * 分页查询商品规格
     * @param page
     * @param condition
     * @return
     */
    IPage<ProductSpecsItem> selectPage(IPage<ProductSpecsItem> page, @Param("condition")ProductSpecsCondition condition);
}